package com.culturalCenter.dataCenter.service.user;

import com.culturalCenter.dataCenter.entity.user.Picture;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface PictureService {

    /**
     * Picture分页查询
     *
     * @param page
     * @param size
     *
     * @return
     */
    PageInfo<Picture> findPage(int page, int size);

    /**
     * 删除Picture
     *
     * @param id
     */
    Integer delete(String id);

    /**
     * 修改Picture数据
     *
     * @param picture
     */
    Integer update(Picture picture);

    /**
     * 新增Picture
     *
     * @param picture
     */
    Integer add(Picture picture);

    /**
     * 根据ID查询Picture
     *
     * @param id
     *
     * @return
     */
    Picture findById(String id);

    /**
     * 查询所有Picture
     *
     * @return
     */
    List<Picture> findAll(Picture picture);

}
